package com.oig.sys.workflow.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.io.Serializable;


/**
 * @author wuxl
 * 定时任务执行日志
 */
@Getter
@Setter
@ToString
@Entity
@Table(name = "tb_cron_job_log")
@EntityListeners({AuditingEntityListener.class})
public class TbCronJobLog implements Serializable {

	/**
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name = "id", nullable = false)
	private Integer id;

	/**
	 */
	@Column(name = "job_id")
	private Integer jobId;

	/**
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "execute_time")
	private java.util.Date executeTime;

	/**
	 *
	 */
	@Column(name = "execute_duration")
	private Integer executeDuration;
	/**
	 */
	@Column(name = "execute_result")
	private String executeResult;

	/**
	 */
	@Column(name = "execute_msg")
	private String executeMsg;


	@Column(name = "web_hook_status")
	private String webHookStatus;
	@Column(name = "notify_status")
	private String notifyStatus;

	/**
	 */
	@Column(name = "tenant_id")
	private Integer tenantId;

	/**
	 */
	@Column(name = "tenant_name")
	private String tenantName;
}
